<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>XenC: XenLMken Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">XenC
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Open-source tool for data selection in NLP</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_xen_l_mken-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">XenLMken Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Class handling KenLM estimation, loading, querying...  
 <a href="class_xen_l_mken.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_xen_l_mken_8h_source.html">XenLMken.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a20d9eb9ed2572542da03136233b1bba6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_l_mken.html#a20d9eb9ed2572542da03136233b1bba6">XenLMken</a> ()</td></tr>
<tr class="memdesc:a20d9eb9ed2572542da03136233b1bba6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#a20d9eb9ed2572542da03136233b1bba6">More...</a><br /></td></tr>
<tr class="separator:a20d9eb9ed2572542da03136233b1bba6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87830c598aed98a2d395ca00f9c7021c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_l_mken.html#a87830c598aed98a2d395ca00f9c7021c">initialize</a> (boost::shared_ptr&lt; <a class="el" href="class_corpus.html">Corpus</a> &gt; ptrCorp, boost::shared_ptr&lt; <a class="el" href="class_xen_vocab.html">XenVocab</a> &gt; ptrVoc)</td></tr>
<tr class="memdesc:a87830c598aed98a2d395ca00f9c7021c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialization function from a <a class="el" href="class_corpus.html" title="Corpus-related functionalities. ">Corpus</a> and a vocabulary (<a class="el" href="class_xen_vocab.html" title="Class handling a XenC vocabulary. ">XenVocab</a>)  <a href="#a87830c598aed98a2d395ca00f9c7021c">More...</a><br /></td></tr>
<tr class="separator:a87830c598aed98a2d395ca00f9c7021c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69b956276672cbd451cb21e89ceaaf07"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_l_mken.html#a69b956276672cbd451cb21e89ceaaf07">initialize</a> (boost::shared_ptr&lt; <a class="el" href="class_xen_file.html">XenFile</a> &gt; ptrFile, boost::shared_ptr&lt; <a class="el" href="class_xen_vocab.html">XenVocab</a> &gt; ptrVoc)</td></tr>
<tr class="memdesc:a69b956276672cbd451cb21e89ceaaf07"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialization function from an already existing LM file and a vocabulary (<a class="el" href="class_xen_vocab.html" title="Class handling a XenC vocabulary. ">XenVocab</a>)  <a href="#a69b956276672cbd451cb21e89ceaaf07">More...</a><br /></td></tr>
<tr class="separator:a69b956276672cbd451cb21e89ceaaf07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77b6813f528192ae3931e22207515dda"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_l_mken.html#a77b6813f528192ae3931e22207515dda">initialize</a> (boost::shared_ptr&lt; <a class="el" href="class_xen_result.html">XenResult</a> &gt; ptrXenRes, boost::shared_ptr&lt; <a class="el" href="class_xen_vocab.html">XenVocab</a> &gt; ptrVoc, int pc, std::string name=&quot;&quot;)</td></tr>
<tr class="memdesc:a77b6813f528192ae3931e22207515dda"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialization function from a XenC filtering result file and a vocabulary.  <a href="#a77b6813f528192ae3931e22207515dda">More...</a><br /></td></tr>
<tr class="separator:a77b6813f528192ae3931e22207515dda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2ba887e753cb1a8535f06e44bb3708f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_l_mken.html#ac2ba887e753cb1a8535f06e44bb3708f">~XenLMken</a> ()</td></tr>
<tr class="memdesc:ac2ba887e753cb1a8535f06e44bb3708f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default destructor.  <a href="#ac2ba887e753cb1a8535f06e44bb3708f">More...</a><br /></td></tr>
<tr class="separator:ac2ba887e753cb1a8535f06e44bb3708f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ce273f39e73dcbf814ec0ecfc2fcbc6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_l_mken.html#a7ce273f39e73dcbf814ec0ecfc2fcbc6">createLM</a> ()</td></tr>
<tr class="memdesc:a7ce273f39e73dcbf814ec0ecfc2fcbc6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Estimates a language model based on the provided data.  <a href="#a7ce273f39e73dcbf814ec0ecfc2fcbc6">More...</a><br /></td></tr>
<tr class="separator:a7ce273f39e73dcbf814ec0ecfc2fcbc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61ed2b1a0e4462ffae9763c55bdee9bd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_l_mken.html#a61ed2b1a0e4462ffae9763c55bdee9bd">loadLM</a> ()</td></tr>
<tr class="memdesc:a61ed2b1a0e4462ffae9763c55bdee9bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Loads a language model from a provided file name.  <a href="#a61ed2b1a0e4462ffae9763c55bdee9bd">More...</a><br /></td></tr>
<tr class="separator:a61ed2b1a0e4462ffae9763c55bdee9bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb2b113b9a6dc335939f82664edbe76e"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_l_mken.html#abb2b113b9a6dc335939f82664edbe76e">getFileName</a> () const </td></tr>
<tr class="memdesc:abb2b113b9a6dc335939f82664edbe76e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Accessor to the language model file name.  <a href="#abb2b113b9a6dc335939f82664edbe76e">More...</a><br /></td></tr>
<tr class="separator:abb2b113b9a6dc335939f82664edbe76e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af063855dfc32d28dd63457a14c6b544c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_txt_stats.html">TxtStats</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_l_mken.html#af063855dfc32d28dd63457a14c6b544c">getSentenceStats</a> (std::string sent)</td></tr>
<tr class="memdesc:af063855dfc32d28dd63457a14c6b544c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the KenLM stats of a given sentence.  <a href="#af063855dfc32d28dd63457a14c6b544c">More...</a><br /></td></tr>
<tr class="separator:af063855dfc32d28dd63457a14c6b544c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fe6edbcbd59bd0f28a6bb5385ad9557"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_txt_stats.html">TxtStats</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_l_mken.html#a1fe6edbcbd59bd0f28a6bb5385ad9557">getDocumentStats</a> (boost::shared_ptr&lt; <a class="el" href="class_corpus.html">Corpus</a> &gt; c)</td></tr>
<tr class="memdesc:a1fe6edbcbd59bd0f28a6bb5385ad9557"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the KenLM stats of a <a class="el" href="class_corpus.html" title="Corpus-related functionalities. ">Corpus</a> at a document level.  <a href="#a1fe6edbcbd59bd0f28a6bb5385ad9557">More...</a><br /></td></tr>
<tr class="separator:a1fe6edbcbd59bd0f28a6bb5385ad9557"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class handling KenLM estimation, loading, querying... </p>
<p>This class is in charge of handling all KenLM-related operations. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a20d9eb9ed2572542da03136233b1bba6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">XenLMken::XenLMken </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default constructor. </p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_xen_l_mken_a20d9eb9ed2572542da03136233b1bba6_cgraph.png" border="0" usemap="#class_xen_l_mken_a20d9eb9ed2572542da03136233b1bba6_cgraph" alt=""/></div>
<map name="class_xen_l_mken_a20d9eb9ed2572542da03136233b1bba6_cgraph" id="class_xen_l_mken_a20d9eb9ed2572542da03136233b1bba6_cgraph">
<area shape="rect" id="node2" href="class_xen_option.html#a97ad096aee729b4d8ae993b1381d4eec" title="Accessor to the instance of the singleton XenOption object. " alt="" coords="210,5,370,31"/>
<area shape="rect" id="node3" href="class_xen_option.html#a67da0cea887ff0da9811ddcec2f68e41" title="Accessor to the order for language models estimation. " alt="" coords="218,55,362,80"/>
<area shape="rect" id="node4" href="class_xen_option.html#a6ab0cf83aba2f9c732f12f51bc4ca139" title="Accessor to the memory percentage for LM estimation. " alt="" coords="212,104,368,129"/>
<area shape="rect" id="node5" href="class_xen_option.html#aa2440102cfc4d19a467ba7f6655fe35a" title="Accessor to the temporary files path. " alt="" coords="218,153,361,179"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ac2ba887e753cb1a8535f06e44bb3708f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">XenLMken::~XenLMken </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a7ce273f39e73dcbf814ec0ecfc2fcbc6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XenLMken::createLM </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Estimates a language model based on the provided data. </p>
<dl class="section return"><dt>Returns</dt><dd>0 if all goes well </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_xen_l_mken_a7ce273f39e73dcbf814ec0ecfc2fcbc6_cgraph.png" border="0" usemap="#class_xen_l_mken_a7ce273f39e73dcbf814ec0ecfc2fcbc6_cgraph" alt=""/></div>
<map name="class_xen_l_mken_a7ce273f39e73dcbf814ec0ecfc2fcbc6_cgraph" id="class_xen_l_mken_a7ce273f39e73dcbf814ec0ecfc2fcbc6_cgraph">
<area shape="rect" id="node2" href="class_xen_option.html#a97ad096aee729b4d8ae993b1381d4eec" title="Accessor to the instance of the singleton XenOption object. " alt="" coords="201,5,362,31"/>
<area shape="rect" id="node3" href="class_xen_option.html#a67da0cea887ff0da9811ddcec2f68e41" title="Accessor to the order for language models estimation. " alt="" coords="210,55,354,80"/>
<area shape="rect" id="node4" href="class_xen_option.html#a6ab0cf83aba2f9c732f12f51bc4ca139" title="Accessor to the memory percentage for LM estimation. " alt="" coords="204,104,359,129"/>
<area shape="rect" id="node5" href="class_xen_option.html#a9a83de2b94b53713432e93debb62c09f" title="Accessor to the minimum block size. " alt="" coords="207,153,357,179"/>
<area shape="rect" id="node6" href="class_xen_option.html#afe6200e9f6d4380588b1795f9c40267b" title="Accessor to the sort block size. " alt="" coords="205,203,358,228"/>
<area shape="rect" id="node7" href="namespace_xen_common.html#ad4f4868634e46d6ee82e57d343a77abe" title="Template converting a value into a string with a precision of 20. " alt="" coords="205,252,358,277"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a1fe6edbcbd59bd0f28a6bb5385ad9557"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_txt_stats.html">TxtStats</a> XenLMken::getDocumentStats </td>
          <td>(</td>
          <td class="paramtype">boost::shared_ptr&lt; <a class="el" href="class_corpus.html">Corpus</a> &gt;&#160;</td>
          <td class="paramname"><em>ptrCorp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Computes the KenLM stats of a <a class="el" href="class_corpus.html" title="Corpus-related functionalities. ">Corpus</a> at a document level. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ptrCorp</td><td>: the <a class="el" href="class_corpus.html" title="Corpus-related functionalities. ">Corpus</a> to compute the stats from </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the computed document-level KenLM stats </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_xen_l_mken_a1fe6edbcbd59bd0f28a6bb5385ad9557_cgraph.png" border="0" usemap="#class_xen_l_mken_a1fe6edbcbd59bd0f28a6bb5385ad9557_cgraph" alt=""/></div>
<map name="class_xen_l_mken_a1fe6edbcbd59bd0f28a6bb5385ad9557_cgraph" id="class_xen_l_mken_a1fe6edbcbd59bd0f28a6bb5385ad9557_cgraph">
<area shape="rect" id="node2" href="class_xen_l_mken.html#af063855dfc32d28dd63457a14c6b544c" title="Computes the KenLM stats of a given sentence. " alt="" coords="256,5,453,31"/>
<area shape="rect" id="node3" href="class_xen_option.html#a17723ab17afa712bfc7a9539719abf94" title="Accessor to the source language in&#45;domain data file. " alt="" coords="275,55,434,80"/>
<area shape="rect" id="node4" href="namespace_xen_common.html#ad4f4868634e46d6ee82e57d343a77abe" title="Template converting a value into a string with a precision of 20. " alt="" coords="278,104,431,129"/>
<area shape="rect" id="node5" href="class_xen_option.html#a67da0cea887ff0da9811ddcec2f68e41" title="Accessor to the order for language models estimation. " alt="" coords="282,153,427,179"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="abb2b113b9a6dc335939f82664edbe76e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string XenLMken::getFileName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Accessor to the language model file name. </p>
<dl class="section return"><dt>Returns</dt><dd>the language model file name </dd></dl>

</div>
</div>
<a class="anchor" id="af063855dfc32d28dd63457a14c6b544c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_txt_stats.html">TxtStats</a> XenLMken::getSentenceStats </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>sent</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Computes the KenLM stats of a given sentence. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sent</td><td>: the sentence to compute the stats from </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the computed KenLM stats </dd></dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_xen_l_mken_af063855dfc32d28dd63457a14c6b544c_icgraph.png" border="0" usemap="#class_xen_l_mken_af063855dfc32d28dd63457a14c6b544c_icgraph" alt=""/></div>
<map name="class_xen_l_mken_af063855dfc32d28dd63457a14c6b544c_icgraph" id="class_xen_l_mken_af063855dfc32d28dd63457a14c6b544c_icgraph">
<area shape="rect" id="node2" href="class_xen_l_mken.html#a1fe6edbcbd59bd0f28a6bb5385ad9557" title="Computes the KenLM stats of a Corpus at a document level. " alt="" coords="251,5,453,31"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a87830c598aed98a2d395ca00f9c7021c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XenLMken::initialize </td>
          <td>(</td>
          <td class="paramtype">boost::shared_ptr&lt; <a class="el" href="class_corpus.html">Corpus</a> &gt;&#160;</td>
          <td class="paramname"><em>ptrCorp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">boost::shared_ptr&lt; <a class="el" href="class_xen_vocab.html">XenVocab</a> &gt;&#160;</td>
          <td class="paramname"><em>ptrVoc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialization function from a <a class="el" href="class_corpus.html" title="Corpus-related functionalities. ">Corpus</a> and a vocabulary (<a class="el" href="class_xen_vocab.html" title="Class handling a XenC vocabulary. ">XenVocab</a>) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ptrCorp</td><td>: the corpus to estimate the LM from </td></tr>
    <tr><td class="paramname">ptrVoc</td><td>: the vocabulary used to estimate the LM </td></tr>
  </table>
  </dd>
</dl>
<p>&lt; No use for a <a class="el" href="class_xen_result.html" title="Class handling a XenC sorted result file for evaluation/best point. ">XenResult</a> here </p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_xen_l_mken_a87830c598aed98a2d395ca00f9c7021c_cgraph.png" border="0" usemap="#class_xen_l_mken_a87830c598aed98a2d395ca00f9c7021c_cgraph" alt=""/></div>
<map name="class_xen_l_mken_a87830c598aed98a2d395ca00f9c7021c_cgraph" id="class_xen_l_mken_a87830c598aed98a2d395ca00f9c7021c_cgraph">
<area shape="rect" id="node2" href="class_xen_option.html#a97ad096aee729b4d8ae993b1381d4eec" title="Accessor to the instance of the singleton XenOption object. " alt="" coords="193,5,354,31"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a69b956276672cbd451cb21e89ceaaf07"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XenLMken::initialize </td>
          <td>(</td>
          <td class="paramtype">boost::shared_ptr&lt; <a class="el" href="class_xen_file.html">XenFile</a> &gt;&#160;</td>
          <td class="paramname"><em>ptrFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">boost::shared_ptr&lt; <a class="el" href="class_xen_vocab.html">XenVocab</a> &gt;&#160;</td>
          <td class="paramname"><em>ptrVoc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialization function from an already existing LM file and a vocabulary (<a class="el" href="class_xen_vocab.html" title="Class handling a XenC vocabulary. ">XenVocab</a>) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ptrFile</td><td>: the LM file to load </td></tr>
    <tr><td class="paramname">ptrVoc</td><td>: the vocabulary used to estimate the LM </td></tr>
  </table>
  </dd>
</dl>
<p>&lt; No use for a corpus here</p>
<p>&lt; No use for a <a class="el" href="class_xen_result.html" title="Class handling a XenC sorted result file for evaluation/best point. ">XenResult</a> here </p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_xen_l_mken_a69b956276672cbd451cb21e89ceaaf07_cgraph.png" border="0" usemap="#class_xen_l_mken_a69b956276672cbd451cb21e89ceaaf07_cgraph" alt=""/></div>
<map name="class_xen_l_mken_a69b956276672cbd451cb21e89ceaaf07_cgraph" id="class_xen_l_mken_a69b956276672cbd451cb21e89ceaaf07_cgraph">
<area shape="rect" id="node2" href="class_xen_option.html#a97ad096aee729b4d8ae993b1381d4eec" title="Accessor to the instance of the singleton XenOption object. " alt="" coords="193,5,354,31"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a77b6813f528192ae3931e22207515dda"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XenLMken::initialize </td>
          <td>(</td>
          <td class="paramtype">boost::shared_ptr&lt; <a class="el" href="class_xen_result.html">XenResult</a> &gt;&#160;</td>
          <td class="paramname"><em>ptrXenRes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">boost::shared_ptr&lt; <a class="el" href="class_xen_vocab.html">XenVocab</a> &gt;&#160;</td>
          <td class="paramname"><em>ptrVoc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialization function from a XenC filtering result file and a vocabulary. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ptrXenRes</td><td>: the XenC filtering result file </td></tr>
    <tr><td class="paramname">ptrVoc</td><td>: the vocabulary used to estimate the LM </td></tr>
    <tr><td class="paramname">pc</td><td>: the percentage of the corpus in ptrXenRes to use </td></tr>
    <tr><td class="paramname">name</td><td>: optionnal file name of the LM </td></tr>
  </table>
  </dd>
</dl>
<p>&lt; No use for a corpus here </p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_xen_l_mken_a77b6813f528192ae3931e22207515dda_cgraph.png" border="0" usemap="#class_xen_l_mken_a77b6813f528192ae3931e22207515dda_cgraph" alt=""/></div>
<map name="class_xen_l_mken_a77b6813f528192ae3931e22207515dda_cgraph" id="class_xen_l_mken_a77b6813f528192ae3931e22207515dda_cgraph">
<area shape="rect" id="node2" href="class_xen_option.html#a97ad096aee729b4d8ae993b1381d4eec" title="Accessor to the instance of the singleton XenOption object. " alt="" coords="193,5,354,31"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a61ed2b1a0e4462ffae9763c55bdee9bd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XenLMken::loadLM </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Loads a language model from a provided file name. </p>
<dl class="section return"><dt>Returns</dt><dd>0 if all goes well </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/<a class="el" href="_xen_l_mken_8h_source.html">XenLMken.h</a></li>
<li>src/<a class="el" href="_xen_l_mken_8cpp.html">XenLMken.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 18 2016 17:22:37 for XenC by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
